﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using ReporterControlLibrary.Models;

namespace Reporter.Controls
{
    public class ProjectTabItemContainerStyleSelector : StyleSelector
    {
        public Style ProjectHomeStyle
        {
            get;
            set;
        }

        public Style ProjectStyle
        {
            get;
            set;
        }

        public override Style SelectStyle(object item, DependencyObject container)
        {
            ItemsControl ctrl = ItemsControl.ItemsControlFromItemContainer(container);

            if (item is ProjectHome)
                return ProjectHomeStyle;
            else
                return ProjectStyle;
        }      
    }
}
